﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Windows.Documents;

namespace TrafficCountingTool.Models
{
    public class VehicleCounting
    {
        public string VehicleType { get; set; }
        public int Count { get; set; }
        public List<TimeSpan> CreateTime { get; set; }

        public VehicleCounting()
        {
            CreateTime = new List<TimeSpan>();
        }

        public DisplayingVehicleCounting ToDisplayingVehicleCounting()
        {
            return new DisplayingVehicleCounting()
            {
                Count = Count,
                VehicleType = VehicleType,
                CreateTime = CreateTime
            };
        }
    }
}